package orm;

/**
 * AbstractTempknowId entity provides the base persistence definition of the
 * TempknowId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractTempknowId implements java.io.Serializable {

	// Fields

	private long tempid;
	private long kid;

	// Constructors

	/** default constructor */
	public AbstractTempknowId() {
	}

	/** full constructor */
	public AbstractTempknowId(long tempid, long kid) {
		this.tempid = tempid;
		this.kid = kid;
	}

	// Property accessors

	public long getTempid() {
		return this.tempid;
	}

	public void setTempid(long tempid) {
		this.tempid = tempid;
	}

	public long getKid() {
		return this.kid;
	}

	public void setKid(long kid) {
		this.kid = kid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractTempknowId))
			return false;
		AbstractTempknowId castOther = (AbstractTempknowId) other;

		return (this.getTempid() == castOther.getTempid())
				&& (this.getKid() == castOther.getKid());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (int) this.getTempid();
		result = 37 * result + (int) this.getKid();
		return result;
	}

}